{extend name="public/base"/}
{block name="body"}
  {include file="public/qiye" /}
{/block}
{block name="script"}
<script type="text/javascript">
  var addUrl = "{:url('index/cart/add')}",
      minusUrl = "{:url('index/cart/minus')}",
      clearUrl="{:url('index/cart/clear')}",
      cartListUrl ="{:url('index/cart/getCartlist')}";
</script>
<script src="__PUBLIC__/xsd/js/index.js" charset="utf-8"></script>
<script src="__PUBLIC__/xsd/js/cart.js?v=11321231" charset="utf-8"></script>
<script>
  $(function(){
      $(document).on('click', '.tgxd' , function(){
      var url = $(this).attr('data-url'),num = parseInt($('.carticon').attr('attr-quantity'))
        if(num>0){
          window.location.href = "{:url('cart/qiye', ['cid'=>$cid ])}"
        }else{
          mui.toast('请添加购买的商品！')
        }
    })
  })
</script>

{include file="public/previewimage" /}
{/block}
